package com.xiaoxu.privatechat.entity.admin;


import com.xiaoxu.privatechat.entity.common.BaseEntity;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

/**
 * @author xiaoxu
 * @description 后台操作日志记录表
 * @date 2023/2/13
 */
@Entity
@Table(name = "pc_operater_log")
@EntityListeners(AuditingEntityListener.class)
public class OperaterLog extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 操作者
     */
    @Column(name = "operator", nullable = false, length = 18)
    private String operator;
    /**
     * 操作内容
     */
    @Column(name = "content", nullable = false, length = 128)
    private String content;

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operater) {
        this.operator = operater;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }


}
